import request from "@/utils/request";

// 请求服务管理的维修首页列表
export function getActivityListApi(params) {
  return request({
    url: "/service/activity",
    method: "get",
    params,
  });
}
// 请求小区的位置
export function getcommunityApi() {
  return request({
    url: "/community",
    method: "get",
  });
}
// 上传活动
export function postActivityInfoApi(data) {
  return request({
    url: "/service/activity",
    method: "post",
    data,
  });
}
// 修改活动
export function editActivityInfoApi(data) {
  return request({
    url: "/service/activity/" + data.id,
    method: "put",
    data,
  });
}
// 获取活动详情
export function getActivityInfoApi(id) {
  return request({
    url: "/service/activity/" + id,
    method: "get",
  });
}

export function delActivityInfoApi(id) {
  return request({
    url: "/service/activity/" + id,
    method: "DELETE",
  });
}
